#import "textview.h"

#define TC(w) GTK_TEXT_VIEW(w)

@implementation TextView

- init {
	if (self = [super init]) widget = gtk_text_view_new();
	gtk_container_set_border_width((GtkContainer *)(widget), 3);
	return self;
}

- free {
	g_free(widget);
	return [super free];
}

- setBuffer: (GtkTextBuffer *) buff {
	gtk_text_view_set_buffer (TC(widget), buff);
	return self;
}

- setEditable: (gboolean) set {
	gtk_text_view_set_editable(TC(widget), set);
	return self;
}

@end

